﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Taobao.Tools2.Domain.EntityFramework.Mappings;

namespace Taobao.Tools2.Domain.EntityFramework
{
    public class OutSentMapping:ModelMapping<OutSent>
    {
        public OutSentMapping()
            : base()
        {
            Map(d => d.ToTable("OutSent"));
            Property(c => c.OutSId).HasColumnName("OutSid");
            Property(c => c.Message).HasColumnName("Message");
            Property(c => c.Memo).HasColumnName("Memo");
            Property(c => c.CompanyCode).HasColumnName("CompanyCode");
            Property(c => c.Failure).HasColumnName("Failure");
            Property(c => c.OrderType).HasColumnName("ordertype");
            Property(c => c.Success).HasColumnName("Success");
            Property(c => c.ShopID).HasColumnName("Shop");

            Property(c => c.ID).HasColumnName("OutSentID").HasDatabaseGeneratedOption(System.ComponentModel.DataAnnotations.DatabaseGeneratedOption.None);
            HasKey(c => c.ID);

            //HasRequired<Trade>(c => c.Trade).WithRequiredPrincipal();
        }
    }
}
